<template>
    <view :style="themeColor">
        <view class="page" >
    <view class="flex flex-wrap align-center justify-between benben-position-layout flex settlementMerchant_flex_0"    :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
            <view   class='flex flex-wrap align-center settlementMerchant_fd0_0'   @tap.stop="handleJumpDiy" data-type="back" data-url="1"   >
        <image class='settlementMerchant_fd0_0_c0'  mode="aspectFit"  :src='STATIC_URL+"234.png"'></image>
</view>
<text class='settlementMerchant_fd0_1'  >入驻协议</text>
    <view   class='flex flex-wrap align-center settlementMerchant_fd0_0'      >
        </view>

        </view>
<view :style="{height: (88+StatusBarRpx)+'rpx'}"  ></view>
    <view class="ben_fu-jyf-parser_1" >
        <jyf-parser :html="dataEssay.content | richTextFormat"></jyf-parser>
    </view>
    <view class="flex flex-direction align-center benben-position-layout flex settlementMerchant_flex_2"    >
            <view   class='flex align-center settlementMerchant_fd2_0'      >
                <benben-flex-switch-new class-name='flex flex'  v-model="is_tick" :disabled='false'   >
            <template v-slot:checked>
            
    <view   class='flex flex position-relative align-center'      >
        <image class='settlementMerchant_checkfd2_0_c0_c0_c0'  mode="aspectFit"  :src='STATIC_URL+"3.png"'></image>
</view>

            </template>
            <template v-slot:unchecked>
            
    <view   class='flex flex position-relative justify-end align-center'      >
        <image class='settlementMerchant_checkfd2_0_c0_c0_c0'  mode="aspectFit"  :src='STATIC_URL+"213.png"'></image>
</view>

            </template>
        </benben-flex-switch-new>
<text class='settlementMerchant_fd2_0_c1'  >我已阅读并同意以上协议</text>
</view>
<button class='settlementMerchant_fd2_1'  @tap.stop="jumpFunc()"  >下一步，填写申请信息</button>

        </view>
<view :style="{height: '220rpx'}"  ></view>
    
    
        </view>
    </view>
</template>
<script>
    import {validate} from '@/common/utils/validate.js'
    export default {
        components:{},
        
        
        data(){
			return {"dataEssay":{"content":""},"is_tick":false};
		},
		computed:{
            themeColor() {
              return this.$store.getters.themeColor
            },
            
		},
		watch:{},
		onLoad(options){
            this.agreementFunc()
		},
        onUnload() {
                
        },
		onReady(){
            
		},
		onShow(){
            
		},
		onHide(){
            
		},
		onResize(){
            
		},
		onPullDownRefresh(){
            
		},
		onReachBottom(e){
            
		},
		onPageScroll(e){
            
		},
		methods:{
                            //商家入驻-获取入驻协议
                async agreementFunc(){
                        //请求方法
    //数据验证
    
  let datadataEssay = await this.$api.post(global.apiUrls.post6412f9b9df85f, {
    
  });
  
  if (datadataEssay.data.code != 1) {
    this.$message.info(datadataEssay.data.msg);
    return
  } 
  let infodataEssay = datadataEssay.data;
  this.dataEssay = infodataEssay.data
  
                },
                //跳转
                 jumpFunc(){
                                if(this.is_tick===false){
                 this.$message.info('请勾选协议');
                 return false;
            }
    this.$urouter.redirectTo(`/pages/wd/packageSelect/packageSelect`);
                }
		}
    };
</script> 
<style lang="scss" scoped>
           .page{
            width: 100vw;
            overflow-x: hidden;
            min-height: calc(100vh - var(--window-bottom));
            background:#fff;background-size: 100% auto;
        }
    .settlementMerchant_flex_0{
        background:#fff;width:750rpx;height:88rpx;overflow:hidden;z-index:10;top:0rpx;background-size:100% auto !important;
    }
    .settlementMerchant_fd0_1{
        color:#333333;font-size:36rpx;font-weight:500;line-height:50rpx;
    }
    .settlementMerchant_fd0_0_c0{
        width:20rpx;height:36rpx;border-radius:0rpx 0rpx 0rpx 0rpx;margin:0rpx 0rpx 0rpx 32rpx;
    }
    .settlementMerchant_fd0_0{
        width:100rpx;height:88rpx;
    }
    .ben_fu-jyf-parser_1{
       background-color:#fff;
padding-left:32rpx;
padding-right:32rpx;
padding-top:32rpx;
padding-bottom:0rpx;

    }
    .settlementMerchant_flex_2{
        background:#fff;width:750rpx;height:220rpx;overflow:hidden;z-index:10;bottom:calc(0rpx + var(--window-bottom));background-size:100% auto !important;
    }
    .settlementMerchant_fd2_1{
        background:var(--benbenbgColor7);border-radius:50rpx 50rpx 50rpx 50rpx;font-size:32rpx;color:#fff;margin:44rpx 0rpx 0rpx 0rpx;width:686rpx;height:88rpx;line-height:88rpx;font-weight:500;
    }
    .settlementMerchant_fd2_0_c1{
        margin:0rpx 0rpx 0rpx 15rpx;color:#999999;font-size:24rpx;font-weight:400;line-height:32rpx;
    }
    .settlementMerchant_checkfd2_0_c0_c0_c0{
        width:24rpx;height:24rpx;
    }
    .settlementMerchant_fd2_0{
        color:#2A2A2A;font-size:24rpx;line-height:33rpx;font-weight:400;margin:24rpx 0rpx 0rpx 0rpx;
    }
</style>